﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Futajma.MigrationStudio.SharePointPersistance.Dialog
{
    public partial class LoginDialog : Form
    {
        public LoginDialog()
        {
            InitializeComponent();
#if DEBUG
            UserName = "Administrator";
            Domain = "win-qdqqqejjk0o";
            Password = "Admin";
#else
            UserName = "";
            Domain = "";
            Password = "";
#endif
        }

        public string UserName
        {
            get
            {
                return txtUsername.Text;
            }
            set
            {
                txtUsername.Text = value;
            }
        }

        public string Domain
        {
            get
            {
                return txtDomain.Text;
            }
            set
            {
                txtDomain.Text = value;
            }
        }

        public string Password
        {
            get
            {
                return txtPassword.Text;
            }
            set
            {
                txtPassword.Text = value;
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
